package demo1;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石方旭
 * Date: 2022-08-08
 * Time: 10:27
 */
public class demo3 {

    //创建目录
    public static void main(String[] args) {
        File file = new File("text1-txt/a/a/aa");
        System.out.println(file.mkdir());
        System.out.println(file.mkdirs());
        System.out.println(file.isDirectory());
        System.out.println(file.getName());

    }

}
